package com.rd.student.dashuju.sunwenzhuo.Test1.inheritedflower;


public class Rose extends Flower{
    private String place;

    public void setPlace(String place) {
        this.place = place;
    }

    public String getPlace() {
        return place;
    }

    public Rose(String color, String price, String place){
        getColor();
        getPrice();
        getPlace();

    }

    public void warn(){
        System.out.println("不要采摘玫瑰花，小心扎手");
    }
    @Override
    public void showInfo(){
        super.showInfo();
        System.out.println("产地是"+place);
        warn();
    }
}
